package com.wyh.domain.vo.g3vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@HeadRowHeight(20)
@ColumnWidth(20)
public class ExcelInfoVo {

    @ApiModelProperty("组织名称")
    @ExcelProperty(value = "组织名称")
    private String organizationName;

    @ApiModelProperty("园区名称")
    @ExcelProperty(value = "园区名称")
    private String parkName;

    @ApiModelProperty("组团名称")
    @ExcelProperty(value = "组团名称")
    private String cluster;

    @ApiModelProperty("楼盘名称")
    @ExcelProperty(value = "楼盘名称")
    private String propertyname;

    @ApiModelProperty("楼栋名称")
    @ExcelProperty(value = "楼栋名称")
    private String buildingname;

    @ApiModelProperty("单元")
    @ExcelProperty(value = "单元")
    private String unitname;

    @ApiModelProperty("楼层名称")
    @ExcelProperty(value = "楼层名称")
    private String floorname;

    @ApiModelProperty("资源名称")
    @ExcelProperty(value = "资源名称")
    private String resourcename;

    @ApiModelProperty("客户名称")
    @ExcelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty("费项名称")
    @ExcelProperty(value = "费项名称")
    private String billingitemsname;

    @ApiModelProperty("计费期间起")
    @ExcelProperty(value = "计费期间起")
    private Date starttime;

    @ApiModelProperty("计费期间止")
    @ExcelProperty(value = "计费期间止")
    private Date endtime;

    @ApiModelProperty("计费账期")
    @ExcelProperty(value = "计费账期")
    private Date billingtime;

    @ApiModelProperty("三表名称")
    @ExcelProperty(value = "三表名称")
    private String meterName;

    @ApiModelProperty("三表编号")
    @ExcelProperty(value = "三表编号")
    private String meterNumber;

    @ApiModelProperty("三表类型")
    @ExcelProperty(value = "三表类型")
    private Integer meterType;

    @ApiModelProperty("表倍率")
    @ExcelProperty(value = "表倍率")
    private Integer meterMultiplier;

    @ApiModelProperty("上期用量")
    @ExcelProperty(value = "上期用量")
    private Double lastPeriodUsage;

    @ApiModelProperty("上期抄表时间")
    @ExcelProperty(value = "上期抄表时间")
    private Date lastReadingTime;

    @ApiModelProperty("三表上期读数")
    @ExcelProperty(value = "三表上期读数")
    private Integer lastMeterReading;

    @ApiModelProperty("三表本期读数")
    @ExcelProperty(value = "三表本期读数")
    private Integer currentMeterReading;

    @ApiModelProperty("用量")
    @ExcelProperty(value = "用量")
    private Integer dosage;

    @ApiModelProperty("单价")
    @ExcelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty("应收金额")
    @ExcelProperty(value = "应收金额")
    private BigDecimal receivable;

    @ApiModelProperty("错误原因")
    @ExcelProperty(value = "错误原因")
    private String errorReason;

    @ApiModelProperty("结果")
    @ExcelIgnore
    private boolean result;

    public boolean isResult() {
        return result;
    }


}
